package net.retorx

import java.io.File
import java.util.Date
import reflect.BeanProperty
import javax.xml.bind.annotation.{XmlRootElement, XmlElement}
import javax.ws.rs.FormParam

@XmlRootElement
class Thing {
	
	@FormParam("name")
	@BeanProperty
	var name: String = "Bob"

	@FormParam("hatSize")
	@BeanProperty
	var hatSize: Int = 12

	@FormParam("file")
	@BeanProperty
	var file: File = new File("/Users/dclay/Pictures/guitar.jpg")

	@FormParam("date")
	@BeanProperty
	var date: Date = new Date()

	override def toString() = name + ", " + hatSize + ", " + file.getAbsolutePath() + ", " + date
}